from selenium import webdriver

url = 'https://bj.lianjia.com/'
driver = webdriver.Chrome()
driver.get(url)

js = 'scrollTo(0,1000)'
# 向下滚动
driver.execute_script(js)

driver.find_element_by_xpath('/html/body/div[3]/div/div[1]/div[2]/div[1]/a[1]').click()

